How can I fix the TypeError: string indices must be integers in my JSON to CSV conversion code

visit shbcf.ru